package design.strategy;

/**
 * 上下文
 */
public class Context {

    //策略
    private StrategyService strategyService;

    //使用策略的具体方法
    public void method(){
        strategyService.algorithm();
    }

    public void setStrategyService(StrategyService strategyService) {
        this.strategyService = strategyService;
    }

}
